package com.example.theorygame.entity;


import com.example.theorygame.base.BaseMan;

import org.cocos2d.nodes.CCLabel;

/**
 * @author yangfan
 */
public class blue extends BaseMan {
    private CCLabel label;

    public blue(String filePath) {
        super(filePath);
    }

    public blue(int x, int y, boolean b, int s, int i) {
        super("image/layer5/blue.png");
        this.setPosition(x, y);
        this.setScale(0.5f);
        if (x > 100) {
            this.setFlipX(true);
        } else {
            this.setFlipX(false);
        }
        this.setAnchorPoint(0, 0);
        this.setTag(i);
        label = CCLabel.labelWithString("" + s, "???", 30);
        label.setColor(ccc3(0, 0, 0));
        label.setAnchorPoint(0, 0);
        label.setPosition(10, 0);
        label.setVisible(b);
        this.addChild(label);
    }

}
